Relating to v2 of the software (major modifications from azcar_sim, v1)