implemented the possibility to let the device blink and improved and commented the code