added docs for the functions + added docs for some missing tpa functions.