Rename debug->enabled and add comments.