Minor change to incrementing function, changed file location for dems