Fixed bugs in summer-tree; Migrated summer-ruleengine