Finish evaluate function, start debug

Finished writing the evaluateOperations() function,
wrote test. Test failed, started debugging.

Fixed some of the indexOfOpening/indexOfClosing
issues. indexOfClosing didn't take into account
functions without parenthesis.