updated resampling routines and web interface