Cleanup code. Fix led polarity.