Added straightRamp() to function library
Commented and cleaned up code