Added more attributes to the URL class and fixed some behavior problems