Doxygen update + cleanup

+ Edit doxygen config
+ Improve code by using `const &` when possible.