added arg_parse. history file read option working.