fix for cli
fix cli
add enhancements for cli interface
improve cli by using readline