Add documentation and redefine agora var