clean-up and refactor

* restoring i, j pointer
adding __doc__

* update README
* tagging version 1.0