minor bugfixes. additional integration tests. updated readme.