javadoc, examples and fixes

1. fixed JSON parser
2. added query status examples
3. javadoc