Thread monitor added
Small refactoring
Readme
small refactoring