Create mainV2.py

I modified the main file to support multithreading now.