Fix snapToPoint and snapToGrid handlers and add/update their docstrings