completed config reader class and tests