Document some parts of lib