Create main.c

main.c moved over from mbed compiler