Lots of thread safety changes, added a new book.
Merge pull request #72 from Clashnia/hqm

Lots of thread safety changes, added a new book.