Updating error codes
Changing incorrect comments
Converting consent table from event to accept/written format