Power law fitting

I've incorporated the power law fitting. The needed libraries and such are mentioned in the commit notes