spec added
exception instead log message
Merge pull request #6 from Mendor/master

Dialyzer specs, #4 fix