Added prev / next functions. Fixed #2.