removed unused 'done' code
added comments
comments