Added config reader and exceptions