fix decomposition of shaped ore recipes
a touch of cleaning up
add function to merge a stack to a range of inventory slots
generate output