Clean up and reorganize the execute-process module

- Use default parameters to simultaneously reduce repetition of the overloaded
  functions, and to allow for many more ways of calling the function.
- Create the set_ptime() function for execute_process() to use, for abstraction
  and modularity.  This also makes it clearer what is going on, shortens
  execute_process(), and allows for commenting of the procedure.