Added documentation on rules