Added next and previous overloading methods

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>

Next and previous are pretty much always called using an offset of 1 or -1, so just for simplicity, I added some overloads with 1 as parameter.

There is also something added related to newlines, I think it is from a previous commit where nothing was cleaned by someone.