OSX compatibility and updated for ARC

I updated the code to be compatible with ARC and also added the ability to use the same class categories on OSX. Sample OSX code also provided.
Oh yes. That is. I just copied and pasted the comment data from the header without thinking about that.