Added a readconfig and writeconfig in class and test in sketch