rename perror2 to perrsym.
unused variables removed.
unused variables and options removed.
define request/reply message as macros.