Added debug info on footer
Changed belong_to to embedded_in relationship in items