Rewritten. Complete.

Added comment headers, rewrote while and for loops, and displays three windows.