Update notes for submitted changes

* Use the lock decorator and close/join the thread pool