Code enhancements

Thanks to ashikase for his code review and his suggestions regarding CFNotificationCenterAddObserver() and updateDockBackgroundView()