Merged most global vars into one var block.
Merge pull request #1 from cgtdk/master

Merged most globals into one var block.