-Added semi-usable logging
-Fixed not responding server when threading is enabled
-Threading can be enabled with compile time define