Fixed lots of bugs, extraction algorithm. Going to work on cluster
detection algorithm.