Minor cleanup in shell scripts to remove duplication. Updated README based on my test run.