refactor prev()
code for hasNext
close #18
fix release issue