added correct salient points, now loops through in window
added some error handling, can now use multiple times