 module.exports.public = (req, res, next) ->
     id = req.params.publiceventid
     key = req.query.key
+    # Retrieve event
     Event.find id, (err, event) ->
+        # If event doesn't exist or visitor hasn't access display 404 page
         if err or not event or not visitor = event.getGuest key
+            # Retreive user localization
             locale = localization.getLocale()
+
+            # Display 404 page
             fileName = "404_#{locale}.jade"
             filePath = path.resolve __dirname, '../../client/', fileName
             # Usefull for build

            res.status 404
            res.render fileName

        else if req.query.status in ['ACCEPTED', 'DECLINED']
            visitor.setStatus req.query.status, (err) ->
                next err if err?
                res.header 'Location': "./#{event.id}?key=#{key}"
                res.status(303).send()


        else
            if event.isAllDayEvent()
                dateFormatKey = 'email date format allday'
            else

            dateFormat = localization.t dateFormatKey
            date = event.formatStart dateFormat

            # Retrieve user localization
            locale = localization.getLocale()

            # Display event
            fileName = "event_public_#{locale}.jade"
            filePath = path.resolve __dirname, '../../client/', fileName
            # Usefull for build
