Fixed a leaked global.
Comments updated.