 ## Router & Route logic inspired by RouterJS:
 ## https://github.com/haithembelhaj/RouterJs
+
+###*
+  Core module
+  @module core
+###
 
 StringUril = require 'theoricus/utils/string_util'
 Route = require 'theoricus/core/route'

      @run url
    , 1

  ###
  Creates and store a route
  
  @param [String] route
  @param [String] to
  @param [String] at
  @param [String] el
  ###
  map:( route, to, at, el )->
    @routes.push route = new Route route, to, at, el, @


      #remove base path from incoming url
      ( url = url.replace @the.base_path, '' ) if @the.base_path?

      # removes the prepended '.' from HistoryJS
      url = url.slice 1 if (url.slice 0, 1) is '.'

