More tweaks to install and trying to fix latex bugs