Added the declaration block for function, nested functions included.
Better indentation for grammar and other stuff.
changed the xmlformatter, but nothing changed in output -.-