Added file expansion and console messages for each step in the directory creation and file retrieval process.