added comments

made comments to xmlFormater() function.