Add trun on red led code, cleanup no useless code