Add --show-completed parameter to head and tail commands

Fixes #36