Added type() function documentation

Added documentation for the type() function that specifies what the function is for, and added an additional example under the all() function.