created a thread for blinking of the power button
added sig handler for a clean exit