implemented evaluateTree

evaluateTree is implemented but I have to change isOperator to accept a
String instead of an unbounded string
changed argument of isOperator

changed isOperator from accepting unbounded strings to String and
changed calls to isOperator to reflect the new argument
added helper functions for printing functions

I also changed the documentation for evaluateTree's helper function to
better reflect its function