       @translate(@currentPage, "X", "250px", "0.3s")
       @menuOpen = true
       
-  # call on transition end
+  # Private: Finish any transitions.
+  #
+  # Returns nothing.
   finishTransition: =>
     @currentPage.style.display = "none"
     @currentPage.removeEventListener "webkitTransitionEnd", @finishTransition, false
-    # swap pages
     @currentPage = @targetPage
-    
-   resetState: =>
-    @back = false
-    @isTransitioning = false
 
-   # translate page on secified axis. Duration defaults to speed property when not passed. Delay defaults to 0.
-   translate: (page, axis, distance, duration) =>
-    if not duration? then duration = @speed
+  # Private: Translate page on a specified axis.
+  #
+  # page     - An Element of the page.
+  # axis     - A String of the axis.
+  # distance - A String of the distance.
+  # duration - A String of the duration, defaults to speed.
+  #
+  # Returns nothing.
+  translate: (page, axis, distance, duration) =>
+    duration = @speed unless duration?
     page.style.webkitTransition = "#{duration} ease"
     page.style.webkitTransform = "translate#{axis}(#{distance})"
-    
-   # displays pages when transiton is false, back animations do not matter here.
-   displayPage: =>
+
+  # Private: Display the current page.
+  #
+  # Returns nothing.
+  displayPage: =>
     @targetPage.style.display = "-webkit-box"
     @currentPage.style.display = "-webkit-box"
     @targetPage.style.left = "0%"
     @currentPage.style.left = "100%"
     @isTransitioning = false
 
-  # Public: Get a Hash of browser user agent information.
+  # Private: Get a Hash of browser user agent information.
   #
   # Returns a Hash of user agent information.
   detectUserAgent: ->

    window.setTimeout =>
      @translate(@targetPage, "X", "0%")
      @currentPage.addEventListener "webkitTransitionEnd", @finishTransition, false
      @resetState()
    , 5

  # Public: Perform a slide from bottom transition.
  #
  # Returns nothing.
  slideFromBottom: ->

    os = @detectUserAgent()
    @transitionAnimation = false if os.android and os.version <= '2.1'

    @hideUrlBar() if @hideUrlBar

  # Public: Go to a specific page.
  #
