Some modiffications and new function plotCenters