renamed a few speed-related variables, more comments