add readline support

Adds readline support for (completion, history, etc.)