* cleaning up old code
* making the best fit fucktion do the right thing
* fixing logic for best fit