Fixed afgf-keygen to put key file in the correct location and print correct hex characters as the key.