Refined ignoreComment() code. Special case of a comment at the end still throws the exception I created...not sure what to do.