Fixed a bug where the point num and var num were wrongly counted, and therefore the imported data was wrong.
Fixed a few bugs with accessing the wrong properties