Added complete() event to worker. Added some comments as well