Added stats bar, removed some redundant functions, added doxygen friendly comments