Fix loci composition csv output, start learning grid for plotting