Refactor code.
Add Doxygen configuration file.