some warnings fixed
+sample is saving existing sample before creation of a new one
+sample is increasing sample name counter