Refactored Interpreter to be a function library

Refactored the interpretAdd() method to be static.