Use number of parser errors to determine best AST
Minor tweaks and style changes
More tweaks