Documentation correctness

1. Fixed example and index.h
2. libname changed