[scripts] Fix warnings and \0 character print bug.
[engine] Tie in knowledge base and remote some verbosity.