added errors flag to api initialization issue #23

- added support for errors flag
- fixed a typo when using .get('warnings' but the key is always there
- enabled by default warnings and errors