+function to add key, create meta environment and meta information