put mainloop.c into main.c
I am neonano