final cleanup
added comments for explanation purposes
stabilized control&transfer-socket commands