Updated GCode Generator so that it now complies with the latest standard.