Replaced deprecated PHPExcel function, fixed small error in auto-attribution of attributes with default values.