Fix error handling
Add history to readline()