Added the option to return stories and directory from the specified path