reverted LED pin change, general code cleanup