Changed config managing
Added reading/writing to config files
Added unit tests for configs