Added documentation for the hilbert function