Working programm

Solved the issues with non'working code. Now 2 files are added separated
by tad in one file