added -u option to install library from http
added better error check for URL install