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

bug-fixes to psm1 file