Add better checking when entering URL

Add new calls to see how many entries are found on the entered URL. 

Add new function killWindow(), takes one argument "window", when called, execute window.destroy()

Clean up comments