Added scrolling and double click events. Cleaned up some code.