head command

tests are in tests/test_head.py