adding files and creating master files