add raise_exceptions options to initializer
Merge pull request #2