reading parameters and writing to file working properly c++style, removed obsolete get_buff_HE() function