key schedule generation, some cleanup