adding tests and exception for parsing URLs with invalid syntax
adding a lot of docs, raising exception for invalid url syntax