Add docuemnt comments of cookie and formatter