added smartindent
fixed bundle/xmledit issues