Fix bugs with readline patch, adding rpc interface

Added banner at startup.