Documentation & error handling