Create main.c

Separation of purpuses for the different files.