refactor env vars

Create separate SrConfig subclass for keys and settings
in environment.
minor doc work