added logging of tracked trains and msgs type stats to csv file for live trains