Add and remove keywords from code list. Prepare data for saving.