Add better library definition docs