Add thread names

closes #42