promise version of file read for test run
sync version of readdir used and added comments
sync version of readdir used and added comments
sync version of readdir used and added comments