added LICENSE

fix offset
added next and prev methods