getConfig now returns configuration value

See main() for example usage.