Added getters to config;
Singleton pattern is used now;
Bugfix.