closes #12.
Merge pull request #26 from djhaynes/master

Fix for issue #12