Some changes

$tr_code is link to $code var now. Compile problems avoiding added