Refactored the code some to look more like that MVC model although work still needs to be done to really get it to that stage though. Now working with dirent.h to read files from a directory.