Merge pull request #4 from skolima/master

1.3.1: cleaned up exceptions thrown and issues found by VS Code Analysis.