Clean up code and fix doxygen mainpage and comments after slot changes.