- Make it compilable with new rust changes.
- add a module cmd_reader.
- some improvements.