addition of simple spec tests
add some input validation and dependency on stdlib
Merge pull request #25 from wolfspyre/master

addition of some simple unit tests for issue 24