initial thoughts
sorting directories and files
need to check fopen issue next
file creation ok