Added the ability to get the title of the active window, get the coordinates, and then trap it. As well as making the quit function.