Added trainer, prgData and chrData arrays
Checks length of trainerData, prgData and chrData
fixed compilation error with previous change
Merge remote-tracking branch 'origin/Loader'