Fixed a bug regarding function scope, and added an external code file
that main reads from. Also changed toString() methods in values.