Worked on key generation

Still isn't verify correctly, will have to look into this.