Updates to for loop and timer 0 ISR for red LED

Ported changes into project source cloned from github fork