fix string termination in helper conversion functions
fix algorithm, now correctly calculates ramps and ramp rates