Reorganized electric power analysis code.