fixed bug when constructing second thread object. needed to construct it with inverse semaphore parameters. also added iteration count to output string.