fixing some issues related to g++ requiring spaces between nested vectors/templates as well as finding an issue with some of my correction factprs