changed how we get the latest revision, also removed excess variables from getNextMemento/getPrevMemento/getCurrentMemento