bug fix
bug fix
fix perl warnings
Merge pull request #340 from teharrison/master

minor bug fixes