added next and prev functions for retrieving DOM elements, tested, and updated docs