Fixed issue that caused setLed to not respond and check batterylevel
getBatteryLevel and some other improvement by timstamp.co.uk