Clean up header files in task.c
Restore puts implementation
Unify indent to spaces