writing to cammodelfile working correctly, reading from mfile is working c++ style, reading from he-txt-file is not working correctly c++ style