added resampling and updated readme