comments and improvements to the key generation
changes to the default value of prefix for keys, and ignoring keys generated in working directory