fixed bugs - remaining to fix - min distance between neurons