remove unused code
Some edits
Toward implementing the counter approach to monitor threads
Add some documentation for WaitObj
Every time a thread enters a function, check whether other threads should still wait for this thread or not.
Add some methods for WaitObj
Create WaitObj to store information about which thread is waiting for whom and is waiting by whom