minimac refactor: start software adaptation & some HW fixes