[Main] Improved config module

* Uses with for reading config file
* Uses read_file instead of read
[Main] Config class created

* config module function rearranged in Config class
* removed obsolete functions