Documentation and examples fixes