renamed pos to positive for better readability.
Fixed a bug in getNewWeight()
Fixed a bug in the new weight calculation and created getNewWeight().
Updated jar package to reflect recent changes.