working on it, a couple of math errors fixed
improve error checking
merge master from github
add probability space into drawings