Add: Add error checking and fixes for group product support

Also documented PHP and JS.