Changed documentation to reflect error checking