adding calculation of simulated dec dep gain, code cleanup, makes images with labels