[v6r12] Fixes for the new pilot

Some real bugs, some more documentation, some slight code changes mostly for logging, debugging, and extensibility