Added a method to check if a file exists and a method to delete a file
using fileID. Both are tested and commented.