keep up with pkg.latest state
update docstring for available_version()
fix version type
Merge pull request #3467 from giantlock/develop

fix some issues with pkg