Made a proper rounder for findPt, still might be better way. Changed materials input to just give the parameters int the input file so it does not have to look up every time.