Major Commit: Full Working Copy

Major Commit: This code works completely and is ready for full testing.

more minor updates, fixes to colors and fixed some functions to pass
globals properly.