Remove commented code, remove fn in doxygen for tms module, coding standards