added gitignore and divided building app into several files