Writing documentation for moment matching