added convert library, moved type definitions of opcode to headers.