fixed header issue in log_numtrain
simply use "program" as header instead of "program name"