Adding missing date argument. Adding a check for permissions of the files to import.