Repair broken code, and related wording. Thanks @FangYiXiong and @mattt !

Fixes #24.