Several changes to muon class to fix some problems with comparison between emulator and hw. Added a script that creates comparison plots between hw and emu. Has to be cleaned up.