Bugfixes

heartbeat thread is spawned
server read thread is spawned
fleshed out server reading system a bit