Refactor part of the interpeter

This change has the following edits:
* Overload setReg for integer values and remove unsafe type parameter
* Factor out certain binary operations
* Remove toString calls
* Factor out value lookup
* Fix trailing comment in echo example
Merge pull request #3 from forestbelton/refactor

Refactor part of the interpeter