Documentation for function generator