Updated configreader and controller class. Also re-organized thier structure