Configuration settings

Added configuration settings and an additional setting max_workers.
Includes a test.