adding files and creating file i/o