Update parser.cpp

Fix formatting for much of the file