Added toString for codes