fixed bug where spp was not defaulting to 1024
read_data_and_context now supports sweep and stream mode