Cleanup, comments, restore Win7 specific code

Removed some legacy or broken code
Added comments to some environment setup
Added back Win7 specific code due to OS detection not being passed to
hotkeys
Removal of OS Detection

Doesn't work as I'd intended, caused issues with duplicate hotkeys.