Added red led on pin3, and removed unused code