Added url feature and a corresponding test. Also added some common exceptions.