changed 'samples' from list to dict. started csv output.