Helper Functions

The helper functions are mostly involved in converting units, file saving, or have been adapted from other sources as needed.