FX-236; tidied up threading; renamed dthread; removed unused thread methods