added examples for Library#to_h and Library#rotate