Separate out main.app into its own file