Improved MCU logger API

Less error prone, more logical
Updated main with new api
Fixed performance issue with GUI

+bugfix