allow completion on sockopt names

allows completion on sockopts in places like IPython. Currently only completes uppercase opts, even though lowercase opt access works.

and minor API doc cleanup.