Added function CreateFileEntry and renamed other functions