removed line breaks before children.
improved list parsing.