Update in bill for generating pdf and xml files using a dictionary and a template (programatically improved