Update parser.h

Fix formatting in much of the file
Fixes #1