Fixed issues found by cppheck
added doxyfile
updated comment format, refactoring