Small changes to visualization function, optimization of reading am binaries and calibration func