Starting commeting the code

I've finally started to comment the code.
I guess it is now readable for extending puporses.