Added multithreading and some minor changes
Minor changes to rules.py

Added some minor changes to rules.py