Added better documentation to parser and main.