add needed pass statements

These are syntax errors otherwise
import getNeighbors
significantly speed up computation

Replaced some very poorly written code.
Improved the algorithm from O(N^4) to O(N^2)
update plots

make them vector pdfs
update all the plots