fixed repair code loading and some cleaning
altered data model
repairs upload