Tried to get target finder working

Taking a break because its not
Project Clean

Cleaned up the segment_count function for the demo