Added useful code for the console application

Currently allows compiling to one compiler (since there's only one
  compiler currently available). Should be easy enough to add new
  compilers without much tweaking by adding a case block for each.