 
     addAnchors()
 
+  # -------------------------------------
+  #   Slugify
+  # -------------------------------------
+  # string - the string to slugify
+  # -------------------------------------
+
   slugify = (string) ->
     string.toLowerCase().replace(/[^\w ]+/g,'').replace(/\s+/g,'-')
+
+  # -------------------------------------
+  #   Add Anchors
+  # -------------------------------------
 
   addAnchors = ->
     settings.headings.each ->

      slug = slugify( element.text() )
      element.attr('id', slug)
      element.prepend("<a class='#{settings.anchorClass}' href='##{slug}'>#</a>")

  init: init



@Spellbook.headingLinks = do ->

  # -------------------------------------
  #   Instance Variables
  # -------------------------------------

  settings = {}

  # -------------------------------------
  #   Initialize
  # -------------------------------------

  init = (options) ->
    settings = $.extend(
