adding configuration in XML
adding consistent stats reading; adding feature generation