spacing
reduced useless loop
cleaned up by declaring namespace (using..)
added update from best-fit to the optimizer pie-analysis updater.
more obvious program flow