fixed a file creation issue when the parent directory is not an absolute path
updated the UserGuide