thread sample added
minor changes
some tests