improving newline removal in parser
fixing parse to include layout tags and simple layout and style functions
adapting tests to parser changes