Added Quantity struct.
Some work on documenting.