bugfixes issue #1 and #2 on GitHub

increment version to 1.0.1-beta