Refactored globals; added install_hub
Refactored package installation to work on unix systems