remove unnecessary files and create out folder to put generated files