Add docstrings, fix method name.
Move common functionality into ShellRunnerMixin class and update affected code.