added test, fixed issue with example
updated readme