rename PrinterInterface -> LinePrinterInterface
remove dead code + add docblocks
add command indexed table to simplify subcommand dispatching on interactive mode
react properly when CTRL+D is pressed on interactive mode