fix all func docs and comments