rearranged generator layout. Not encapsulated within a function. Should make designing the scrambler and unscrambler functions a bit easier and cleanier to read down the line.