Added documentaton to some api functions.