Optgroups

Closes #26.