Fixed add_to_file function in FileManip class