updated library, references and demo from gemini lab