Some bug fixes

 - Quantity and Value had illegal handling of decimal values;
 - Value had to be divided by quantity in order to be correct.