refactoring the core and almost finished output for the default stream (stdout)
the first version of the nsq stream is done.
refactoring
added filesystem support