commented out all code not needed for testing
fixed broken loop-based product function.
commented out powerset. it took forever.