Added comments and removed EOF in parser
function parser parses entire first line then guard