Working version of installation of packages. Copyright notice fix. Minor error handling fixes.