added exception handling
extended exception examples