leg2d: added documentation for the options input.