change config to yaml; allow env vars
improve docs