Significantly updated script.

1. Script now loops.
2. Crunched the switches to only have to deal with 1's and 2's.
3. Added waits to help improve cycling.
4. Improved consistency of line indentation.