Add docs for debug API methods

Close #395