generate.mirt_object function added