Fixed some warnings.
Fixed up some Cocoa to use properties, cleanup