formatting Cmd data for ML analysis

part 1