added the ability to find a package's product by its code
set product attributes by splitting the code
updated some tests. added the ability to get a subtotal for products of a certain type