added exception handeling for functions that fail
Merge pull request #100 from teharrison/master

added exception handeling for functions that fail