Added option to enable/disable logging of invalid nesting.
Merge pull request #8 from LimeSoda/optional-logging

Add option to enable/disable logging of invalid nesting.