Added exception if XML file version is too new

Also fixed bug with loading z coord