error handling and other fixes
cleanup
turning on authority validation
Merge pull request #2 from sri-/master

error handling and other fixes