Update and rename test.c to main.c

Add main file to the program.