added functionality to interpreter, added isCorrect