#349 : refactored functionality to write data into debug file. Changed errors from string into array in validateProductData() function