added wnck to retrieve a list of windows and included some error
handling