Tidied up, gave debug window a title