Diagnistics generator added

it works