Moved main.c into app dir