Planner fixed.
Code cleanup.
Added toString().
Fixed the micro planning.