Refactored lib/worker

Refactored and added documentation.
Refactored lib/absolom

And added documentation.