Secure config reading against junk string data
Add history file