Implemented streaming input/output for the command line interface
Added some comments
More tests