Added submenu generator [generates a json file with current files and directories]