refactor to pull configuration out of function.
refactor to configure with run functions.
update README with configuration documentation.