Updating DEM scripts with Ishikawa's mods

Added some modifications made by Ishikawa to the DEM curve-producing routines.