Added pahimar's latest changes, fixed storedEMC meter and fixed pahimar's recipe EMC value assignment.