refactor sfplanner.rb; fix minor bugs
use sfp-0.3.20