minor changes; kde method commented