adds a build script, reorganizes the app's folder structure