Reading from file to struct now works