Added packages to latex install routine and added it to main function