added rpn.h, changed adjusted error messages