Did some git cleaning, added .gitignore. Also made slight changes in code, activate window is now called before setforeground