Finished logic for creating volume fractions, began logic for writing xml output file