Added two variants of EwaldCoulomb. Fixed factory.