Added and updated some documents of the functions.