WorkerAgent logic nearly finished. Refactored lots of classes. Fixed bugs. Improved build config.