Documentation general expansion node

DOC: Improved documentation of GeneralExpansionNode. The default value of the parameter k was changed to match the documentation, as well as the residuals function.