Fix a issue that can't be compiled. And implement the interactive mode.
Functionize the writing todo file code.
Write todo file when the remove command runs.
Fix extra line break is added with writing todo file.