[enh] Add docstrings to process.py

Turn the existings comments into docstrings so they can be seen via introspection