State retention file user error detection; handling a malformed comment in a file.

Exactly as it says on the tin. (Pardon me if you'd like a specific kind of Error to be raised; I didn't see any obvious examples of what to do in the existing codebase.)