More Pester tests
Code cleanup

Modified code to not extend beyond 120 characters, except in Comment-Based Help blocks.
More cleanup to come later on, once unit tests are complete.