critical bug fix to wrapper for cpp implementation of MC, also addeded some useful functionalities to retrieve data from simulation