refactored code to shrink its size and make it easier to read
moved LED output pins so the multi-color led are all on PWM pins and corrected a spelling mistake in the jsp