Add lib and doc directories.