Threaded framework in place

* Flags -B & -b implemented. I.e. threaded framework is in place. Basic
  functionality proven.

* Checking sanity of program arguments

* Separation and preparation for becoming a module