Fixed the avgCellInt function, it now works. Also included in skeletonTramsform a line that removes the isolated pixels. Fixed fixFamilies.