Added stuff to Window class.

Also made Vector class cast methods const.