Better comments + removed openWindow()