updated comments and added repOK and saved