added document about format function