Added function and datatype documentation