Enforces ::setIgnoreWhitespace and ::setIgnoreComments usage

Accepted suggestion for #6