Fix examples and enhance doc