-made product reader functional (fixed getnextProduct()
- fixed array declaration in transaction