Add validate_url, fix comments