Dev commit

Implement package generation function, and some APIs for MainWorker