Fixing problems with the incref/decref management
Minor tweaks
Fixing include guard