Added initial documentation of the JSON API
Add implicit stack arguments