Prepare doxygen, fix some code smell
Right now I'm about to do a huge refactor.