finished static rnd # gen and cleaned up some comments