Changing old engine code to new format

Doxygen sucks. It produces inconsistent results