renamed distance method, changed initialisation list, fixed issue with volume calculation