Library prototyping and packaging

It should look a lot more like a very very rough library now.