v2 fixed and uploaded to maven.

- some lint issues fixed.
- README.md updated.
- uploaded to maven