Amended spfind routine to use iterative sigma clip to find background.
Added check of frame mean against derived BG mean.
Used derivatives to trigger peaks instead of triggering on sigma of pixel value. Still use window to remove cosmic ray artifacts.