add ramp and duration instance plan steps support
add some doctests for instance plan