Changed ramp a little and added comments