code: function readDir(dir) {
      var files = [];
      var root = fs.readdirSync(dir);
      var readMe = false;
      for (var i = 0; i < root.length; i++) {
          var filePath = dir + '/' + root[i];
          var stat = fs.statSync(filePath);
          //console.log(filePath,dir);
          filePath = path.relative(dir, filePath);
          if (stat && stat.isDirectory()) {
              files.push({
                  dir: true,
                  path: filePath
              });
          } else {
              files.push({
                  dir: false,
                  path: filePath
              });
          }
  
          // check if it is readme
          if(root[i].toLowerCase() === 'readme.md'){
              readMe = dir + '/' + root[i];
          }
      }
      return {
          files: files,
          readMe : readMe
      };
  }
docs: read one layer TODO:add readme.md