Implemented events and methods to manipulate files