refactored config file code, more frontend design done