File added

Added file functin
file_added

Update the file function into the file.
Final version