Create main.c

Main file for train controller project.