refs #32 - cleaned up, commented and added resign function to backend thread