Add extra tracing
Fix printf type
Relicense under the Apache 2.0

I have received permission from the only other copyright
holder Eric.