Add doctests, change URLParams behavior