Addded a few function's documentation.