bug-fixes to psm1
Merge pull request #3 from RSabounds/master

bug-fixes to psm1