more error checking

now verifies operands are integers before add/sub/mult operations
and writes a failure to result if not the case