Removed useless rules, updated documents.