Simplify the win.addPackage function params.

No need to pass 3 different params, we can just pass the whole package class instance.
Also fix how the version is readed.