Changes for 31611

Changes for internal issue 31611. 
Basically some minimal docs, use of getopts for options, and get it to work out of the box with defaults after setting just a couple of variables.