added .gitignore, started refactoring build_metafile