added power led functionality and some improvments regarding discovery