updated ewald action. cleaned up initpaths