Fixed missing initialization in the main help generator.
Fixed command scope problems in "extend".