Added config dictionary to setdefaults
Completed config implementation
Made class thread safe