(PDOC-3) Refactor prototype code to make it more readable

Since puppet strings began as an experiment, some of the code was due for a bit of refactoring in order to ensure that the codebase is both sustainable and readable. In addition to the renaming that was dealt with in pull request #4, rearrange some code and remove the modules action.