Added head, tail, and wc
Changed to using itertools.islice to limit the lines printed
Fixed comment, cleaned up code