fixed syntax issues
fixed 'blinking' sample code