Comments and old class removal

Comments for each function (and comments on the parts for the longer
ones), and the removal of defunct classes myWorker, AccountCache, and
Worker.