add in_use_stock_embedded_material to outputs of simulation and fix some minor bugs