Removed threading dependency.
Updated comments.