Fixed and modified loop.pl and took some functionality to create sift.pl which is still yet to be finished