Making it a lib, with documenation started.