fix matrix and comment formatting
apply gates to register when stepping forwards
test basic quantum measurement without gate re-sizing
add basic quantum measurement without gate re-sizing