Minor fixes.

Removed debugging.
Updated PHP API.