Add save method to file module