Where can you get wp themes with the code explained?

I want to alter my themes code but it takes solong figuring out what it means.

does anyone know where you can get templates that explain what the code next to it? thanks

You might want to try looking at tutorial on how to create WP themes, as they most likely go through each line of code and explain it how it works.