Added config file and exported rules to it.