Basic window creation added
Some event codes added