Added functions for compatibility with ROS client interface.
Solved bug in storing and loading of trained models and parameters.