Added doxygen comments to main module.