Update and rename Main.c to main.c

More function and some pseudocode etc...