Attempt to make the section about error-handling clearer, removed some cruft from the example and show how to print a stack trace.