Initializing code and set up storage for configuration file. Also
initialized threads.