Adjusted parser; added evaluator function.