fixed issue with double definition of training_percent
finished doxygen documentation
clean up