fixed rng problems by adding fac,inst,reg specific optional content. fixed init errors by adding InitFrom to reg and inst classes. other minor fixes