Why is tetrafluoromethane non-polar and fluoroform polar?
Draw the structures in 3D and then you will see why one is polar and the other not.

$\ce{CF4}$:



As you can see this molecules adopts a tetrahedral geometry which is perfectly symmetrical in every direction and so the dipoles of the four $\ce{C-F}$ bonds cancel out, leaving no overall dipole.

$\ce{CHF3}$:



Although the molecule has some symmetries, it is not perfectly symmetrical. Since the dipoles of the $\ce{C-F}$ bonds are far larger than the basically non-existent dipole of the $\ce{C-H}$ bond, the dipoles do not cancel out and you are left with a molecule which has a notable net dipole moment of 1.649 D, with the negative end over the fluorines and the positive end over the hydrogen.

As general advice, when determining whether a molecule has a net dipole, always consider the molecule in 3D as opposed to just looking at individual bond dipoles.