added Shell class
table for command line is generated by Shell constructor
key handling for history search, completion, execution, interrupt(ctrl-c)