First crack at the library.

Needs work, especially for iPad