initial commit without tests

Need to add tests, checking for incoming data and dividing between
threads