Basic IO Refinement

Refactored todocmd_input.c and todocmd_output.c. Changed format of
todos in todo.txt.