Improvement to stats window and AISecurity
General clean up of code that generated warnings
Encapsulated 2 variables and made 2 final
Merge pull request #169 from LoadingPleaseWait/master

Improvement to stats window and AISecurity and general clean up