Finished COError documentation and corrected the type of the error argument in commit methods