fix for imported s4generic functions
#5 implemented sim_sample stuff