fixed example and improved doc