added handling of previous/next buttons and updated doco