Fixed an error with the way the comments were entered for some statements.

Added in the translation and truncation of device labels for the Sheet Title.

Fixed #523