Document setDebug methods.
Fix broken usage example.
Add public project usage example.
Put it under the MIT license.