More doc added to the functions