Make tests faster
Reword some comments
Use fastfloor instead of .floor()
Rename grad to grad1