Url initialization

Urls are now initialized differently to allow more flexibility.