creates .app from main.
Modified 30th June.