Basic JavaDocs + cleanup.

Also fix missing calls to clearTasks(); and add task association to
Games. Also fix typo in method name.