Some changes to rule text generation and some minor formating changes.