Refactor resampling, add more notes