Fixed some issues relating to command line and url.