Did some code refactoring
Refactoring
Added functions to recognize files and directories. Also, path iterator is coded. Nothing tested yet, as allways.