added the beginng of new c++ code and some new functionality for argos data