updated functional doc.