Fix comments and reorder T and L flag handling. Update display state machine logging. Fix ALTO2_DEBUG=1 build.