Refactor typemap and include statements
Add prefix to helper functions
Fix typos
Add body reference counting
Refactor helper functions
Add more reference counting
Merge branch 'master' into memory-management
Rename a couple functions
Remove function
Rearrange functions
Replace functions with macros
Add missing ref count increments
Add more ref counting
Fix bug
Fix reference counting
Fix indentation
Change variable names
Fix bug
Refactor
Remove some debugging output