minor fixes
removed plot functions; new subsample function