Fix bugs in quoted data handling, and in require parsing.

Add logging option.