Updated Rakefile to run with input that cleanly compiles by default.
Fixing compiler for Ruby 1.9.3, altered flow to reduce tabbing.

codeGen was improperly adding code to the file (it was wrapped in an
array and thus adding the tostring of a whole array instead of the
actual code)
Updated scanner and typechecker to remove some tabbing by returning early in if statements.