removeing some comments
adding the parameters url and directory in main
adding set url function