Added rule button, and some comments