added unit conversion methods and rulers, made file saving less error prone