See description

-Changed globalDict to settings
-Fixed some bugs