Add delegate IBOutlet, formatting style fixes, app closes with last window