formatting changes and bug fix for % of cluster total calculation