Moved common functions to common.sh
R no longer installs Github packages that are already installed
Made quieter
Fixed symlinking texmf