Minor fixes, added is.resampled() function.