Added lots of comments using doxygen style
Added comments to all the code
Updated comments