Code/formatting cleanup.
Update README with tunable environment variables.