Planner

Finished the first stage of debug in planner .