Added comments and accounted to scrolling with arrows and the scroll bar.