moved example to examples directory. parse URL for backwards compatibility.