Fix include path in require and add template module for doc.