updated docs and worked on thread macro