Added documentation to scan.c and now working repeatedly, passing dictionary (tuples) from db query to spifiles page