Bugfix

Fixed hex number interpreted in base 10 and not 16
Fixed min max computation for array
MCU main cleanup