Add docs and update error names