Support for reaching top of the element.

- added support for when user reaches top of the element
- returning "top" or "bottom" to detech which end reached
- updated doc example for one way scroll (when reached bottom)
- added doc example for both ways scroll
- updated tests to handle reaching top