[library] Add initial documentation, work in progress