fixed a few bugs with constructor stuff (now builds and communicates)#19
Added flag to disable background read thread
fixed segfault on exit
fixes #19