     /**
     Shows the date picker modal in a popover controller and sets the completion block.
 
-    :param: selection  Selected Date
+    :param: selection  Closure to be executed when date/data is selectes
     :param: sourceView view to show from
     :param: sourceRect rect to align to
-    :param: inView viewController used to present it from
+    :param: inViewController viewController used to present the modal
     */
     public func showInPopover (selection: ((AnyObject) -> Void)?, sourceView: UIView, sourceRect: CGRect, inViewController: UIViewController?) {
         self.shownInPopover = true
-        self.selectionClosure = selection
+        self.onSelection = selection
 
         self.modalPresentationStyle = .Popover
         self.preferredContentSize = self.popoverSize

    // MARK: User Actions

    func save () {
        if self.selectionClosure != nil {

            if self.mode == .DatePicker {
                self.selectionClosure!(self.datePicker.date)
            }
            else if self.mode == .Picker {
                self.selectionClosure!(self.selectedPickerValueIndex)
            }

        }

    :param: selection closure to be executed when new date is selected
    */
    public func show (selection: ((AnyObject) -> Void)?) {
        self.onSelection = selection

        self.view.alpha = 0.0
        window.addSubview(self.view)
