Documented admin RPC API and made numerous minor bug fixes