added standardization of units before writing to file
added IonDynamicsType (sorry shouldn't really be part of this PR)