Adding LocationEndPoint function
Correcting a numerical issue
Updating to match new conventions