Add comments & minor code modifications

It’s more convonient to use
var timer: NSTimer!
rather than
var timer: NSTimer?