the entire place was filled with clanking and whirring gears that transferred the force of the waters outside to several shafts , which in turn spun great , pitted wheels of stone atop each other , grinding out fresh flour into surrounding baskets .