Added doxygen and documentation.