output decay length, l and g to file