script for cleaning samsung data and codebook