some bug fixes and moved install-pkgs.R into the scripts directory from Dropbox