Extend -debug mode by including completion candidates, add docs.