Added the ability to support the interactive shell. Commands return generators, *_dump command prints out to screen, can handle file objects or filenames
Made tail return a generator
Fixed some comments