add library and snippet documentation