Updates comments and variable names

1. Change all coordinate to delta for consistency.
2. Update the comments,