Fixes undefined in url, adds some inline documentation for urls

Fixes #148