Changed the code so that the url is accepted as a command line argument