Added a check for whether the user is using a Mac. Also detects which package manager you are using.
Added some commenting.