switch to pandoc markdown, add makefile
add thread example