Implemented collecting bag.

Rewritten hoe harvesting (now fully in scala).