issue #11

now exceptions are throw when errors occurs
Merge branch 'bug/11-error-handling' into dev