added:
calcStats for validation statistics (undocd)
changed subsample to throw an error after 10 failed attempts