added tab completion and history up-down for the console