Move Rule class + add documentation on rule mechanism