update the documentation part of the codes