reorg lib & doc