Fixed put_codes when max power = 0
Implemented graph -> transition table conversion. Added Trans tab with table and triggers funcions.