made internal functions private
use random state in test
removed pickle test
shorten first lines of test docstrings
use random state in preprocess tests
minor corrections: spacing and typos
duck typing
fixed exceptions and their messages