Added pretty-print for rules

Change-Id: I959c5050fadb059ab3a5ac10dfff12c48a357e25