add -v param to get package version
add -v param to get package version
move port integer convertion to index.js