Fixed #5, also added a setUrl function to iterate the url in a slightly ...

...cleaner way