Reworked recursive function for tData input'
cleanup and added testdir shell script
Merge pull request #1 from CrasherCourse/new-input

New input for recursive funtion