support arm64
update documentation
changed sizes to NSUInteger