Added blink procedure

Added code to brink led the number of times per mode.