main: add inference results user interface and fix stupid errors