Improved code quality, bumped version in README.md, fixes #1