Implemented named rules and fixed a few bugs.
Update README.md