reworked according code style
added config params; loaded config
working on config loader
fixed few issues