Reorganized project and added a function to create apps