Real space opt coded up for multiple impurities