add "tail" function
fix typo
support negative lengths
Merge pull request #140 from farrellm/tail

Fix for issue #139