Error fix and basic header description

fixed nesting errors.