Added comments.
Added doxygen documentation