added bad pixel detection; segmap now always created
bugfix and speed improvement
added iteration limit in KSB::findCentroid; coordinate fix