Added history (up/down) and fixed the el-cheapo prompt implementation