Change output format of SampleProcess.sync()
 - returns object reference (extract should be used to access times/values)
 - push all methods into separate files