tidy
change prod cfg option from c to p
print errors to stderr
add distro config option
remove testing vestige
tidy var names