added a function for trapping exceptions and printing the stack trace
Merge branch 'master' of https://github.com/egbutter/mydots