diff --git a/nodejs_config/nodejs_config.module b/nodejs_config/nodejs_config.module
index ad95891..858955b 100644
--- a/nodejs_config/nodejs_config.module
+++ b/nodejs_config/nodejs_config.module
@@ -31,12 +31,14 @@ function nodejs_config_form($form, &$form_state) {
     '#type' => 'textfield',
     '#title' => 'Host',
     '#required' => TRUE,
+    '#description' => 'Specify the host name or IP address that the node server should listen on. Leave blank to listen for any host name. Otherwise, the server will only respond to names that match the IP address given (or resolved from the given name).',
     '#default_value' => variable_get('nodejs_config_host', 'localhost'),
   );
   $form['config']['nodejs_config_port'] = array(
     '#type' => 'textfield',
     '#title' => 'Port',
     '#required' => TRUE,
+    '#description' => 'Specify the TCP port that the node server should listen on.',
     '#default_value' => variable_get('nodejs_config_port', '8080'),
   );
 
@@ -45,12 +47,14 @@ function nodejs_config_form($form, &$form_state) {
     '#type' => $scheme == 'https' ? 'textfield' : 'hidden',
     '#title' => 'Key',
     '#required' => TRUE,
+    '#description' => 'File system path to a key used for https communication with the server and clients.',
     '#default_value' => variable_get('nodejs_config_key', '/path/to/key/file'),
   );  
   $form['config']['nodejs_config_cert'] = array(
     '#type' => $scheme == 'https' ? 'textfield' : 'hidden',
     '#title' => 'Cert',
     '#required' => TRUE,
+    '#description' => 'File system path to a certificate used for https communication with the server and clients.',
     '#default_value' => variable_get('nodejs_config_cert', '/path/to/cert/file'),
   );
 
@@ -58,19 +62,35 @@ function nodejs_config_form($form, &$form_state) {
     '#type' => 'textfield',
     '#title' => 'Resource',
     '#required' => TRUE,
+    '#description' => 'http path that the node server should respond to. This value needs to match the Drupal node.js configuration.',
     '#default_value' => variable_get('nodejs_config_resource', '/node.js/realtime'),
   );
   $form['config']['nodejs_config_publishUrl'] = array(
     '#type' => 'textfield',
     '#title' => 'Publish URL',
     '#required' => TRUE,
+    '#description' => 'http path on which the node server should accept messages from the Drupal site.',
     '#default_value' => variable_get('nodejs_config_publishUrl', base_path() . 'nodejs/publish'),
   );
   $form['config']['nodejs_config_serviceKey'] = array(
     '#type' => 'textfield',
     '#title' => 'Service Key',
+    '#description' => 'An arbitrary string used as a secret between the node.js server and the Drupal site.',
     '#default_value' => variable_get('nodejs_config_serviceKey', ''),
   );
+  $form['config']['nodejs_config_write_channels'] = array(
+    '#type' => 'checkbox',
+    '#title' => 'Client write to channels',
+    '#description' => 'Global flag that allows all channels to be written to by client sockets without going via the backend. defaults to false',
+    '#default_value' => variable_get('nodejs_config_write_channels', FALSE),
+  );
+  $form['config']['nodejs_config_write_clients'] = array(
+    '#type' => 'checkbox',
+    '#title' => 'Client write to clients',
+    '#description' => 'global flag that allows all clients to be written to by client sockets without going via the backend. defaults to false',
+    '#default_value' => variable_get('nodejs_config_write_clients', FALSE),
+  );
+
   $form['config']['backend'] = array(
     '#type' => 'fieldset',
     '#title' => 'Backend',
@@ -79,24 +99,41 @@ function nodejs_config_form($form, &$form_state) {
     '#type' => 'textfield',
     '#title' => 'Host',
     '#required' => TRUE,
+    '#description' => 'Host name of the Drupal site.',
     '#default_value' => variable_get('nodejs_config_backend_host', 'localhost'),
   );
   $form['config']['backend']['nodejs_config_backend_port'] = array(
     '#type' => 'textfield',
     '#title' => 'Port',
     '#required' => TRUE,
+    '#description' => 'TCP port of the server running the Drupal site. Usually 80.',
     '#default_value' => variable_get('nodejs_config_backend_port', '80'),
   );
   $form['config']['backend']['nodejs_config_backend_authPath'] = array(
     '#type' => 'textfield',
     '#title' => 'Auth Path',
+    '#description' => 'http path on which the Drupal node.js module listens for authentication check requests. Must end with /.',
     '#default_value' => variable_get('nodejs_config_backend_authPath', '/nodejs/auth/'),
   );
   $form['config']['backend']['nodejs_config_debug'] = array(
-    '#type' => 'textfield',
+    '#type' => 'checkbox',
     '#title' => 'Debug',
-    '#default_value' => variable_get('nodejs_config_debug', '0'),
+    '#description' => 'Show debug information at the node.js output.',
+    '#default_value' => variable_get('nodejs_config_debug', FALSE),
   );
+
+  $form['ext'] = array(
+    '#type' => 'fieldset',
+    '#title' => 'Extensions',
+    '#description' => 'An array of names of node.js modules that should be loaded as extensions to the node.js server.',
+  );
+  $form['ext']['nodejs_config_extensions'] = array(
+    '#type' => 'textarea',
+    '#title' => 'The extensions',
+    '#description' => 'Inform your extensions, one per line',
+    '#default_value' => variable_get('nodejs_config_extensions', ''),
+  );
+
   $form['#submit'][] = 'nodejs_config_form_submit';
   return system_settings_form($form);
 }
@@ -110,6 +147,8 @@ function nodejs_config_form($form, &$form_state) {
 function nodejs_config_form_submit($form, &$form_state) {
   $values = $form_state['values'];
   $file = drupal_get_path('module', 'nodejs') . '/nodejs.config.js';
+  $ext = $values['nodejs_config_extensions'];
+  $ext = explode("\n", str_replace("\r", '', $ext));
   $array = array(
     'scheme' => variable_get('nodejs_server_scheme', 'http'),
     'host' => $values['nodejs_config_host'],
@@ -119,12 +158,15 @@ function nodejs_config_form_submit($form, &$form_state) {
     'resource' => $values['nodejs_config_resource'],
     'publishUrl' => $values['nodejs_config_publishUrl'],
     'serviceKey' => $values['nodejs_config_serviceKey'],
-    'debug' => $values['nodejs_config_debug'],
     'backend' => array(
       'port' => $values['nodejs_config_backend_port'],
       'host' => $values['nodejs_config_backend_host'],
       'authPath' => $values['nodejs_config_backend_authPath'],
     ),
+    'clientsCanWriteToChannels' => (bool) $values['nodejs_config_write_channels'],
+    'clientsCanWriteToClients' => (bool) $values['nodejs_config_write_clients'],
+    'extensions' => array($ext),
+    'debug' => (bool) $values['nodejs_config_debug'],
   );
   $output = 'backendSettings = ' . drupal_json_encode($array);
   $output = str_replace(array('= {', ',', '}}', ':{', '\/'), array("= {\n  ", ",\n  ", "\n  }\n}", ":{\n  ",  '/'), $output);
