A few bugfixes. Now loads configuration from file correctly.