Added error message for commenting and refactored it into it's own method