Fix JSON parsing
Improve tutorials, javadoc.

minor bug fixes