Updated documentation of functions.

Added documentation for attemptClick and attemptDrag.