Few major changes. Solved TODOS, fixed problems in processConfig().