added auto-detection for authoritative uri parameter, added more documentation