Adds function to print state
Main prints state and init_um applies bitmask