Add genus and period effects. Fix bug in WD calculations.