(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. 
I think putting this here makes the `yard` check irrelevant since it will try to load `yard` before the check is ever performed. I haven't confirmed this yet.