- added basic Java API and example for it
- reconsidered on what functions to expose