started new feature: save generated trial data as files.
first working copy - results seem strange
added validation check between psim and new functions - agree on nonrandom algorithms perfectly