Small changes in PathFileExists Function and other minor update