Added sampling epoch to convertcdf

Also fixed samplingrate