Fixed #8 added the function of save case and label attach function