fixes #19 Tests and docs
#21 docs updated