Added encoder functions and filling out instr info. Added flags to decode_info_t.