Add function generateKey that randomly generates keys
generateKey function works now