History fixed, so that the history command no longer collects PMs. Added a keep history log option in on the General Page, so that history logs will be kept in config_dir\history\yyyy-mm-dd-history.txt in utf-8 encoding