Some changes to rule text generation, minor format changes.