 
 		statusItem.image = icon
 		statusItem.menu = statusMenu
-	}
-
-	func updateNotification() {
-		if notificationSet {
-			let currentDate = NSDate()
-//			NSLog("Notification is set, and current date: \(currentDate.description)")
-//			NSLog("Date of notification:                  \(notificationTime.description)")
-			if (currentDate.laterDate(notificationTime) == currentDate) {
-				NSLog("This is a notification, at least for now.")
-				notificationSet = false
-			}
-		}
 	}
 
 	func update() {

		// initialize timer to automatically call update() how ever often updateTime states
		let timer = NSTimer.scheduledTimerWithTimeInterval(NSTimeInterval(updateTime * 60), target: self, selector: Selector("update"), userInfo: nil, repeats: true)

		// check the notification every 15 seconds
		let notificationTimer = NSTimer.scheduledTimerWithTimeInterval(15, target: self, selector: Selector("updateNotification"), userInfo: nil, repeats: true)
	}

	func applicationWillTerminate(notification: NSNotification) {
		NSUserDefaults.standardUserDefaults().setInteger(numRowsToShow, forKey: "numRowsToShow")
		NSUserDefaults.standardUserDefaults().setObject(cm.stopDict, forKey: "stopDict")
		NSUserDefaults.standardUserDefaults().setInteger(updateTime, forKey: "updateTime")
	}

	func setupUI() {


	var updateTime = 1		// how often in minutes the app calls update()

	var notificationTime = NSDate()

	let statusItem = NSStatusBar.systemStatusBar().statusItemWithLength(-1)
