I came across a good website that explains how Newton derived his formula of gravitational force click here
Why is $\frac{k}{4\pi ^2}=\frac{c}{M}$ and $f=(kmM)/r^2$ not $(4\pi^2)/r^2\sqrt{MmcC}$? Which I tried myself and it seems that I can't see how they came to that conclusion.