Adapt to Rust changes
Add missing documentation