added reading data from XML to instance classes (untested), other changes