code review changes and fixing thread exiting problems.
removing config from repo
changing the email stuff to be a config file in the .gitignore