made some changes to code for finding eclipsing RR lyrae