Cleaned up the file module.