Refactor code a bit.

* Renamed outputWriter variable.
* Removed 2 functions in the parser.
* Removed clang++ as default compiler in CMakeLists.txt.