Minor changes to clean up argument parsing.
Simple threading examples.