Added head method + tests

Fixes #10