Better url error handling, and documentation fix