Cast to correct return type (NSUInteger)
fix typo
Merge pull request #52 from skywinder/compiling-warrnings-and-typos

Compiling warrnings and typos