 {Translator}= require './trans'
 
 class _Room
+    # Initilizae a nodemailer module.
     constructor : () ->
         @transport = nodemailer.createTransport('Sendmail');
         @token  = Token
 
+    # Render the room with the good translation.
     renderRoom : (res, options, host) =>
         options.trans = Translator.getTrans(host, 'room')
         res.render 'room', options
 
+    # Create a new Room and check if the user is logged in.
     roomPage : (req, res, next) =>
         Request.get "#{Config.Restapi.Url}/room/#{req.params.roomid}", (e, r, body) =>
             if e? or r.statusCode > 200

                                options.token = token
                                @renderRoom res, options, req.host

    reportBug       : (req, res) =>
        @transport.sendMail({
            from    : "Voicious bugs<no-reply@voicious.com>"

            else
                res.send 200

    # Create the new room and redirect the user inside.
    newRoom : (req, res, param) =>
        Request.post {
            json    : param
