still debugging...
debug1-fail
debug2-fail
first attempt
fixed some bugs
success, except the two last products
success
success, removed unnecessary comments