Added throw and did some work on exceptions
Merge pull request #176 from jaytaph/throw

Added throw and did some work on exceptions