added function enabling Stata on Mac

Also pointed out the source of the functions.