Fixed bug in phase 3 of do_task_eval - was rescaling by beta twice. Added clarifying comments to planning.py