Code more compliant with Gnome Shell style

Removed nearly all global variables

Adjusted size to ensure that it will be kept