first commit
Add Mode parser
Add thread manager