Double mass curve added

ongoing attempts to reduce the number of used once variables, ongoing
pep 8