setting up directory structure and common files