adds dump and indent methods and generate_probmodelxml function