fix shell reader

fix readline initialisation
remove dead functions