change Nil to NIL to avoid objective c conflict
(issue #8)