finished KeyGenerator
Cleaned up