Debugplanner

Merge planner debugging branch to main branch.