Added 'codes' and fixed print details bug