Make pop private in ThreadPool. Put ThreadPool into Distributed namespace. Some minor formatting changes.