Update dependencies, use duo, refactor demo