fixes #6. fixes #7.

v1.1 also reduces JAR size to under 500KB