bugfixes and sample in readme.md