Updated resampling routines
Updated docstrings