add documentation for DirExist and PicList