Changed window class name, added new functionality

made the widows size set permanently, and made window always appear on
the centre of the screen