Some restructuring, a bit of debugging readouts added. Sorting of circle array experimented with.