general editing and cleanup of the none threaded version.
General editing of threaded version. Command line arguments added.