fixed various typo's and duplicated use statements
Merge pull request #1415 from rojblake/exception_typos

fixed various typo's and duplicated use statements