more docstrings.
generalized script.
Merge remote-tracking branch 'origin/production' into production