Retrieval code runs through, but buggy

Modifications to run_kisq_retrival and Sp class to enable running
through. Still has a few bugs.