Added comments to explain things
Mac check

Checks if the operating system is mac before attempting to display a
notification.