added ability to delete file
formatted code in FileService