Directory path verification, no file found message and minor fixes added