Improved modbus code a bit. 
Merge branch 'master' of github.com:GideonLeGrange/xbee-gateway