updated readme examples for the setRule method.