Syntax errors/fix to trainFolder