Fixed errors concerning invalid hosts when creating URL objects, added a visited urls vector