Typos.
Typos.
More clarity.
Fixed: various bugs in detecting nesting errors.
Changed: results and error handling.