Fixed regression when marking tasks done

REGRESSION: incorrect function name in rebuild_raw function
Added further comments to term.php