fixed system exit, by changing or to AND
added checker for operators
changed the value in the calculator to a static variable so it can be accessed by all methods throughout the program