New mac-friendly version

We edited quite a lot of the code on a windows based laptop, and has
been experiencing some problems making it collaborate with the mac
operating system. This is a late version which works in Xamarin on Mac!