Clarified documentation; Removed unused code.

Wrote detailed documentation on threading implementation. Since caching
is no longer easily implemented, or for that matter, relevant - all
caching code removed.