Added cross platform support for Mac in all files. Now works on Maclab machines. I don't know if I broke it elsewhere yet though