Small fix to improve portability on 32 and 64 bit machines.
Improvements on the Doxygen documentation.
Added doxygen documentation.