Documented JSON-RPC API, fixed #7