Fixed errors in focal volume averaging. It was ported a bit too quickly from a 0 based indexing language.