Documented and completed the class "function"