Minor changes to planner controller (commenting and cleanup)