To express purpose, use "to" before a verb (infinitive). Use "for" before a noun. When talking about what someone does, don't use the "for + veb-ing" construction.
"So that" is a subordinating conjunction that is used to express purpose o why something happens. "So" is a more informal, shortened version of "so that".