comments
disabled Xbee thread, added an optional sleep arg