finished creation of products and added creation of error log