Use () instead of 'nil'
Mark wrapper methods as unsafe
Wrap unsafe function calls in unsafe blocks
Don't use unnecessary () return types
Add common typedefs
Use idiomatic indent style