Added persistent command history
fixed check_balance bug