The library so far...

Includes the test stuff.