added pkg.sh
small modifications