General cleanup of doc and lib.