first commit
var and method names changed

names changed to fit objc conventions