Update gen.rst

Close #2