add location and compile command for task.c
remove dead code
task length is float again!